package com.rich.broker.controller;

import com.rich.broker.service.RentSuccessHouseService;
import com.rich.common.entity.TbRentSuccessHouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author HanSama
 * @date 2021年08月16日 18:40
 */
@RestController
@RequestMapping("/rentSuccessHouse")
public class RentSuccessHouseController {

    @Autowired
    private RentSuccessHouseService rentSuccessHouseService;

    /**
     * 个人出租房成交详情
     * @author HanSama
     * @date 2021/8/16 18:45
     * @param rentSuccessHouse
     * @return java.util.List<com.rich.common.entity.TbRentSuccessHouse>
     */
    @PostMapping("/search")
    public List<TbRentSuccessHouse> search(@RequestBody TbRentSuccessHouse rentSuccessHouse){
        return rentSuccessHouseService.search(rentSuccessHouse);
    }

}
